﻿# 添加基础镜像
FROM mcr.microsoft.com/dotnet/sdk:6.0
RUN apt-get update
# 安装ping
RUN apt install -y iputils-ping curl net-tools
RUN apt install -y ftp
# 安装kubectl
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN rm -rf kubectl
# 安装npm
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y gcc g++ make